<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_24) on Fri Apr 13 14:43:07 EEST 2012 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
NfcManager (Nfc Creator)
</TITLE>

<META NAME="date" CONTENT="2012-04-13">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="NfcManager (Nfc Creator)";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../com/nokia/examples/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/NfcManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/nokia/examples/NfcCreatorMidlet.html" title="class in com.nokia.examples"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/nokia/examples/NfcMenuForm.html" title="class in com.nokia.examples"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?com/nokia/examples/NfcManager.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="NfcManager.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.nokia.examples</FONT>
<BR>
Class NfcManager</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.nokia.examples.NfcManager</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>java.lang.Runnable, javax.microedition.contactless.TargetListener</DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>NfcManager</B><DT>extends java.lang.Object<DT>implements javax.microedition.contactless.TargetListener, java.lang.Runnable</DL>
</PRE>

<P>
Manages NFC interaction with the target.
<P>

<P>
<DL>
<DT><B>Author:</B></DT>
  <DD>Andreas Jakl</DD>
</DL>
<HR>

<P>
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;javax.microedition.contactless.ndef.NDEFMessage</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#cachedMessage">cachedMessage</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When cloning a tag, cache the NDEF message in memory.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;<A HREF="../../../com/nokia/examples/InfoInterface.html" title="interface in com.nokia.examples">InfoInterface</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#callback">callback</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;javax.microedition.contactless.DiscoveryManager</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#dm">dm</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Manager for discovering targets.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;<A HREF="../../../com/nokia/examples/MifareManager.html" title="class in com.nokia.examples">MifareManager</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#mifareManager">mifareManager</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mifare manager, establishes tag-specific Mifare connections if requested.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;javax.microedition.contactless.ndef.NDEFTagConnection</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#ndconn">ndconn</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Connection to the tag is saved here, as the actual processing is happening in a thread.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#ndefMode">ndefMode</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set to true to connect to a tag using an NDEF connection if possible, 
 or false to create a low-level connection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#uriAbbreviations">uriAbbreviations</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Standardized abbreviations used to save bytes on NDEF URI records.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#NfcManager(com.nokia.examples.InfoInterface)">NfcManager</A></B>(<A HREF="../../../com/nokia/examples/InfoInterface.html" title="interface in com.nokia.examples">InfoInterface</A>&nbsp;callback)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new instance of the Nfc Manager.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#checkNdefConnection()">checkNdefConnection</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check if the NDEF connection is still set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#convertToVcalTime(java.util.Date, boolean)">convertToVcalTime</A></B>(java.util.Date&nbsp;datetime,
                  boolean&nbsp;useUtcTime)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert a Date object to the representation required by the vCalendar standard.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;javax.microedition.contactless.ndef.NDEFRecord</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#createActionRecord(byte)">createActionRecord</A></B>(byte&nbsp;action)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;javax.microedition.contactless.ndef.NDEFRecord</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#createCustomRecord(java.lang.String, byte[])">createCustomRecord</A></B>(java.lang.String&nbsp;tagUri,
                   byte[]&nbsp;payload)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;javax.microedition.contactless.ndef.NDEFRecord</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#createGeoRecord(double, double, int)">createGeoRecord</A></B>(double&nbsp;latitude,
                double&nbsp;longitude,
                int&nbsp;geoType)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;javax.microedition.contactless.ndef.NDEFRecord</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#createImageRecord(java.lang.String)">createImageRecord</A></B>(java.lang.String&nbsp;filename)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#createNfcDiscoveryManager()">createNfcDiscoveryManager</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new instance of the discovery manager, so that callbacks can
 be received.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;javax.microedition.contactless.ndef.NDEFRecord</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#createSpRecord(boolean[], java.lang.String, java.lang.String, byte, java.lang.String)">createSpRecord</A></B>(boolean[]&nbsp;writeDetails,
               java.lang.String&nbsp;fullUrl,
               java.lang.String&nbsp;title,
               byte&nbsp;action,
               java.lang.String&nbsp;imageFilename)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;javax.microedition.contactless.ndef.NDEFRecord</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#createTextRecord(java.lang.String, java.lang.String)">createTextRecord</A></B>(java.lang.String&nbsp;text,
                 java.lang.String&nbsp;lang)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;javax.microedition.contactless.ndef.NDEFRecord</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#createUriRecord(java.lang.String)">createUriRecord</A></B>(java.lang.String&nbsp;fullUri)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;javax.microedition.contactless.ndef.NDEFRecord</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#createVcalendarRecord(java.lang.String, java.util.Date, java.util.Date, boolean)">createVcalendarRecord</A></B>(java.lang.String&nbsp;tagCalSummary,
                      java.util.Date&nbsp;tagCalStart,
                      java.util.Date&nbsp;tagCalEnd,
                      boolean&nbsp;useUtcTime)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#deleteNDEFMessage()">deleteNDEFMessage</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Processing method to delete an NDEF message from a pre-established tag connection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#deleteNfcInstances(boolean)">deleteNfcInstances</A></B>(boolean&nbsp;alsoRemoveDiscoveryManager)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Delete & close all Nfc connections.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;java.io.ByteArrayOutputStream</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#getImage(java.lang.String)">getImage</A></B>(java.lang.String&nbsp;filename)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read image from phone to a ByteArrayOutputStream</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;javax.microedition.contactless.ndef.NDEFTagConnection</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#getNdefTagConnection(javax.microedition.contactless.TargetProperties[])">getNdefTagConnection</A></B>(javax.microedition.contactless.TargetProperties[]&nbsp;tProp)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open the connection to the NDEF tag when a target was found.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#handleException(java.lang.Exception)">handleException</A></B>(java.lang.Exception&nbsp;ex)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#readAndCacheMessage()">readAndCacheMessage</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read the message and cache it in memory.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;javax.microedition.contactless.ndef.NDEFMessage</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#readMessageFromTag()">readMessageFromTag</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#readNDEFMessage()">readNDEFMessage</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Processing method to read an NDEF message from a pre-established tag connection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#readRawData()">readRawData</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read raw data from the tag and log it to a file.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#run()">run</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Used to inform the callback about a new tag in a separated thread,
 as recommended by the JSR documentation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#setNdefMode(boolean)">setNdefMode</A></B>(boolean&nbsp;ndefEnabled)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set to true if this class should establish an NDEF connection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#targetDetected(javax.microedition.contactless.TargetProperties[])">targetDetected</A></B>(javax.microedition.contactless.TargetProperties[]&nbsp;targetProperties)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implementation of the call-back function of the TargetListener.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#writeAnnotatedUrl(java.lang.String, java.lang.String)">writeAnnotatedUrl</A></B>(java.lang.String&nbsp;fullUrl,
                  java.lang.String&nbsp;fullText)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#writeCachedMessage()">writeCachedMessage</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#writeCombination(java.lang.String, java.lang.String, byte[])">writeCombination</A></B>(java.lang.String&nbsp;tagUrl,
                 java.lang.String&nbsp;tagTypeUri,
                 byte[]&nbsp;tagPayload)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#writeCustom(java.lang.String, byte[])">writeCustom</A></B>(java.lang.String&nbsp;tagTypeUri,
            byte[]&nbsp;tagPayload)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#writeGeo(double, double, int)">writeGeo</A></B>(double&nbsp;latitude,
         double&nbsp;longitude,
         int&nbsp;geoType)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write geo-coordinates to a URL NDEF message to a 
 pre-established tag connection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#writeImage(java.lang.String)">writeImage</A></B>(java.lang.String&nbsp;imageUri)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#writeMessageToTag(javax.microedition.contactless.ndef.NDEFMessage)">writeMessageToTag</A></B>(javax.microedition.contactless.ndef.NDEFMessage&nbsp;ndefMessage)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#writeRawData(byte[])">writeRawData</A></B>(byte[]&nbsp;tagData)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#writeSmartPoster(boolean[], java.lang.String, java.lang.String, byte, java.lang.String)">writeSmartPoster</A></B>(boolean[]&nbsp;writeMessages,
                 java.lang.String&nbsp;fullUrl,
                 java.lang.String&nbsp;fullText,
                 byte&nbsp;posterAction,
                 java.lang.String&nbsp;imageUri)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Processing method to write a Smart Poster NDEF message to a 
 pre-established tag connection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#writeSms(boolean[], java.lang.String, java.lang.String, java.lang.String, byte)">writeSms</A></B>(boolean[]&nbsp;writeMessages,
         java.lang.String&nbsp;smsUrl,
         java.lang.String&nbsp;smsBody,
         java.lang.String&nbsp;titleText,
         byte&nbsp;posterAction)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#writeText(java.lang.String, java.lang.String)">writeText</A></B>(java.lang.String&nbsp;fullText,
          java.lang.String&nbsp;language)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Processing method to write an NDEF message containing a text record
 to a pre-established tag connection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#writeUri(java.lang.String)">writeUri</A></B>(java.lang.String&nbsp;fullUrl)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Processing method to write an NDEF message containing a URI record
 to a pre-established tag connection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/nokia/examples/NfcManager.html#writeVcalendar(java.lang.String, java.util.Date, java.util.Date, boolean)">writeVcalendar</A></B>(java.lang.String&nbsp;tagCalSummary,
               java.util.Date&nbsp;tagCalStart,
               java.util.Date&nbsp;tagCalEnd,
               boolean&nbsp;useUtcTime)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="callback"><!-- --></A><H3>
callback</H3>
<PRE>
private <A HREF="../../../com/nokia/examples/InfoInterface.html" title="interface in com.nokia.examples">InfoInterface</A> <B>callback</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="dm"><!-- --></A><H3>
dm</H3>
<PRE>
private javax.microedition.contactless.DiscoveryManager <B>dm</B></PRE>
<DL>
<DD>Manager for discovering targets.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="ndconn"><!-- --></A><H3>
ndconn</H3>
<PRE>
private javax.microedition.contactless.ndef.NDEFTagConnection <B>ndconn</B></PRE>
<DL>
<DD>Connection to the tag is saved here, as the actual processing is happening in a thread.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="cachedMessage"><!-- --></A><H3>
cachedMessage</H3>
<PRE>
private javax.microedition.contactless.ndef.NDEFMessage <B>cachedMessage</B></PRE>
<DL>
<DD>When cloning a tag, cache the NDEF message in memory.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="ndefMode"><!-- --></A><H3>
ndefMode</H3>
<PRE>
private boolean <B>ndefMode</B></PRE>
<DL>
<DD>Set to true to connect to a tag using an NDEF connection if possible, 
 or false to create a low-level connection.
 Note: low-level connection currently only supported for Mifare tags.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="mifareManager"><!-- --></A><H3>
mifareManager</H3>
<PRE>
<A HREF="../../../com/nokia/examples/MifareManager.html" title="class in com.nokia.examples">MifareManager</A> <B>mifareManager</B></PRE>
<DL>
<DD>Mifare manager, establishes tag-specific Mifare connections if requested.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="uriAbbreviations"><!-- --></A><H3>
uriAbbreviations</H3>
<PRE>
private static final java.lang.String[] <B>uriAbbreviations</B></PRE>
<DL>
<DD>Standardized abbreviations used to save bytes on NDEF URI records.
<P>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="NfcManager(com.nokia.examples.InfoInterface)"><!-- --></A><H3>
NfcManager</H3>
<PRE>
public <B>NfcManager</B>(<A HREF="../../../com/nokia/examples/InfoInterface.html" title="interface in com.nokia.examples">InfoInterface</A>&nbsp;callback)</PRE>
<DL>
<DD>Create a new instance of the Nfc Manager.
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="setNdefMode(boolean)"><!-- --></A><H3>
setNdefMode</H3>
<PRE>
public void <B>setNdefMode</B>(boolean&nbsp;ndefEnabled)</PRE>
<DL>
<DD>Set to true if this class should establish an NDEF connection.
 Otherwise, it will establish a direct tag connection to read the
 raw data.
 Note: currently, the raw connection is only supported for Mifare tags.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="deleteNfcInstances(boolean)"><!-- --></A><H3>
deleteNfcInstances</H3>
<PRE>
public void <B>deleteNfcInstances</B>(boolean&nbsp;alsoRemoveDiscoveryManager)</PRE>
<DL>
<DD>Delete & close all Nfc connections.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>alsoRemoveDiscoveryManager</CODE> - if true, also the DiscoveryManager is
 deleted and its listener removed.</DL>
</DD>
</DL>
<HR>

<A NAME="createNfcDiscoveryManager()"><!-- --></A><H3>
createNfcDiscoveryManager</H3>
<PRE>
public boolean <B>createNfcDiscoveryManager</B>()</PRE>
<DL>
<DD>Create a new instance of the discovery manager, so that callbacks can
 be received.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>whether establishing the connection was successful.</DL>
</DD>
</DL>
<HR>

<A NAME="targetDetected(javax.microedition.contactless.TargetProperties[])"><!-- --></A><H3>
targetDetected</H3>
<PRE>
public void <B>targetDetected</B>(javax.microedition.contactless.TargetProperties[]&nbsp;targetProperties)</PRE>
<DL>
<DD>Implementation of the call-back function of the TargetListener.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>targetDetected</CODE> in interface <CODE>javax.microedition.contactless.TargetListener</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>targetProperties</CODE> - array of targets found by the phone</DL>
</DD>
</DL>
<HR>

<A NAME="getNdefTagConnection(javax.microedition.contactless.TargetProperties[])"><!-- --></A><H3>
getNdefTagConnection</H3>
<PRE>
private javax.microedition.contactless.ndef.NDEFTagConnection <B>getNdefTagConnection</B>(javax.microedition.contactless.TargetProperties[]&nbsp;tProp)</PRE>
<DL>
<DD>Open the connection to the NDEF tag when a target was found.
 Shows an alert if there is an issue opening the connection.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tProp</CODE> - array containing all target properties that will be
 searched for an NDEF connection.
<DT><B>Returns:</B><DD>a NDEF tag connection if one was found, or null otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="run()"><!-- --></A><H3>
run</H3>
<PRE>
public void <B>run</B>()</PRE>
<DL>
<DD>Used to inform the callback about a new tag in a separated thread,
 as recommended by the JSR documentation.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>run</CODE> in interface <CODE>java.lang.Runnable</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="checkNdefConnection()"><!-- --></A><H3>
checkNdefConnection</H3>
<PRE>
private boolean <B>checkNdefConnection</B>()</PRE>
<DL>
<DD>Check if the NDEF connection is still set. Will do a callback
 to the listener class in case no connection is currently active.
 (in addition to the callback in case of a failure).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>true if a connection is active, false if otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="readMessageFromTag()"><!-- --></A><H3>
readMessageFromTag</H3>
<PRE>
private javax.microedition.contactless.ndef.NDEFMessage <B>readMessageFromTag</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="writeMessageToTag(javax.microedition.contactless.ndef.NDEFMessage)"><!-- --></A><H3>
writeMessageToTag</H3>
<PRE>
private boolean <B>writeMessageToTag</B>(javax.microedition.contactless.ndef.NDEFMessage&nbsp;ndefMessage)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="handleException(java.lang.Exception)"><!-- --></A><H3>
handleException</H3>
<PRE>
private void <B>handleException</B>(java.lang.Exception&nbsp;ex)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readNDEFMessage()"><!-- --></A><H3>
readNDEFMessage</H3>
<PRE>
public void <B>readNDEFMessage</B>()</PRE>
<DL>
<DD>Processing method to read an NDEF message from a pre-established tag connection.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readAndCacheMessage()"><!-- --></A><H3>
readAndCacheMessage</H3>
<PRE>
public boolean <B>readAndCacheMessage</B>()</PRE>
<DL>
<DD>Read the message and cache it in memory. The message is not parsed.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>true on success, false when there was a problem reading a valid message.</DL>
</DD>
</DL>
<HR>

<A NAME="readRawData()"><!-- --></A><H3>
readRawData</H3>
<PRE>
public boolean <B>readRawData</B>()</PRE>
<DL>
<DD>Read raw data from the tag and log it to a file.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>true if successful</DL>
</DD>
</DL>
<HR>

<A NAME="deleteNDEFMessage()"><!-- --></A><H3>
deleteNDEFMessage</H3>
<PRE>
public void <B>deleteNDEFMessage</B>()</PRE>
<DL>
<DD>Processing method to delete an NDEF message from a pre-established tag connection.
 Writes an empty message if a message already exists on the tag. Doesn't 
 do anything if the tag is already empty.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="writeUri(java.lang.String)"><!-- --></A><H3>
writeUri</H3>
<PRE>
public void <B>writeUri</B>(java.lang.String&nbsp;fullUrl)
              throws java.io.UnsupportedEncodingException</PRE>
<DL>
<DD>Processing method to write an NDEF message containing a URI record
 to a pre-established tag connection.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fullUrl</CODE> - URI to be written into the URI record of the NDEF message.
 Any possible abbreviations of the URL are done automatically.
<DT><B>Throws:</B>
<DD><CODE>java.io.UnsupportedEncodingException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeText(java.lang.String, java.lang.String)"><!-- --></A><H3>
writeText</H3>
<PRE>
public void <B>writeText</B>(java.lang.String&nbsp;fullText,
                      java.lang.String&nbsp;language)
               throws java.io.UnsupportedEncodingException</PRE>
<DL>
<DD>Processing method to write an NDEF message containing a text record
 to a pre-established tag connection.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fullText</CODE> - text to be written into the text record of the NDEF message.<DD><CODE>language</CODE> - language to use for the text record
<DT><B>Throws:</B>
<DD><CODE>java.io.UnsupportedEncodingException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeSmartPoster(boolean[], java.lang.String, java.lang.String, byte, java.lang.String)"><!-- --></A><H3>
writeSmartPoster</H3>
<PRE>
public void <B>writeSmartPoster</B>(boolean[]&nbsp;writeMessages,
                             java.lang.String&nbsp;fullUrl,
                             java.lang.String&nbsp;fullText,
                             byte&nbsp;posterAction,
                             java.lang.String&nbsp;imageUri)
                      throws java.io.UnsupportedEncodingException,
                             java.io.IOException</PRE>
<DL>
<DD>Processing method to write a Smart Poster NDEF message to a 
 pre-established tag connection.
 Which parts of the possible information has to be specified in the
 boolean array writeMessages[]. Note that the URL is mandatory
 according to the Smart Poster specification.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE>
<DD><CODE>javax.microedition.contactless.ContactlessException</CODE>
<DD><CODE>java.io.UnsupportedEncodingException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeSms(boolean[], java.lang.String, java.lang.String, java.lang.String, byte)"><!-- --></A><H3>
writeSms</H3>
<PRE>
public void <B>writeSms</B>(boolean[]&nbsp;writeMessages,
                     java.lang.String&nbsp;smsUrl,
                     java.lang.String&nbsp;smsBody,
                     java.lang.String&nbsp;titleText,
                     byte&nbsp;posterAction)
              throws java.io.UnsupportedEncodingException,
                     java.io.IOException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.UnsupportedEncodingException</CODE>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeAnnotatedUrl(java.lang.String, java.lang.String)"><!-- --></A><H3>
writeAnnotatedUrl</H3>
<PRE>
public void <B>writeAnnotatedUrl</B>(java.lang.String&nbsp;fullUrl,
                              java.lang.String&nbsp;fullText)
                       throws java.io.UnsupportedEncodingException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.UnsupportedEncodingException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeImage(java.lang.String)"><!-- --></A><H3>
writeImage</H3>
<PRE>
public void <B>writeImage</B>(java.lang.String&nbsp;imageUri)
                throws java.io.IOException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeGeo(double, double, int)"><!-- --></A><H3>
writeGeo</H3>
<PRE>
public void <B>writeGeo</B>(double&nbsp;latitude,
                     double&nbsp;longitude,
                     int&nbsp;geoType)
              throws java.io.IOException</PRE>
<DL>
<DD>Write geo-coordinates to a URL NDEF message to a 
 pre-established tag connection.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>latitude</CODE> - <DD><CODE>longitude</CODE> - <DD><CODE>geoType</CODE> - 0 ... geo: URI scheme, according to http://geouri.org/
 1 ... Nokia Maps link
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeCustom(java.lang.String, byte[])"><!-- --></A><H3>
writeCustom</H3>
<PRE>
public void <B>writeCustom</B>(java.lang.String&nbsp;tagTypeUri,
                        byte[]&nbsp;tagPayload)
                 throws java.io.UnsupportedEncodingException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.UnsupportedEncodingException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeCombination(java.lang.String, java.lang.String, byte[])"><!-- --></A><H3>
writeCombination</H3>
<PRE>
public void <B>writeCombination</B>(java.lang.String&nbsp;tagUrl,
                             java.lang.String&nbsp;tagTypeUri,
                             byte[]&nbsp;tagPayload)
                      throws java.io.UnsupportedEncodingException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.UnsupportedEncodingException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeVcalendar(java.lang.String, java.util.Date, java.util.Date, boolean)"><!-- --></A><H3>
writeVcalendar</H3>
<PRE>
public void <B>writeVcalendar</B>(java.lang.String&nbsp;tagCalSummary,
                           java.util.Date&nbsp;tagCalStart,
                           java.util.Date&nbsp;tagCalEnd,
                           boolean&nbsp;useUtcTime)
                    throws java.io.IOException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeCachedMessage()"><!-- --></A><H3>
writeCachedMessage</H3>
<PRE>
public void <B>writeCachedMessage</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="writeRawData(byte[])"><!-- --></A><H3>
writeRawData</H3>
<PRE>
public boolean <B>writeRawData</B>(byte[]&nbsp;tagData)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="createUriRecord(java.lang.String)"><!-- --></A><H3>
createUriRecord</H3>
<PRE>
private javax.microedition.contactless.ndef.NDEFRecord <B>createUriRecord</B>(java.lang.String&nbsp;fullUri)
                                                                throws java.io.UnsupportedEncodingException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.UnsupportedEncodingException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="createTextRecord(java.lang.String, java.lang.String)"><!-- --></A><H3>
createTextRecord</H3>
<PRE>
private javax.microedition.contactless.ndef.NDEFRecord <B>createTextRecord</B>(java.lang.String&nbsp;text,
                                                                        java.lang.String&nbsp;lang)
                                                                 throws java.io.UnsupportedEncodingException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.UnsupportedEncodingException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="createSpRecord(boolean[], java.lang.String, java.lang.String, byte, java.lang.String)"><!-- --></A><H3>
createSpRecord</H3>
<PRE>
private javax.microedition.contactless.ndef.NDEFRecord <B>createSpRecord</B>(boolean[]&nbsp;writeDetails,
                                                                      java.lang.String&nbsp;fullUrl,
                                                                      java.lang.String&nbsp;title,
                                                                      byte&nbsp;action,
                                                                      java.lang.String&nbsp;imageFilename)
                                                               throws java.io.UnsupportedEncodingException,
                                                                      java.io.IOException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.UnsupportedEncodingException</CODE>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="createActionRecord(byte)"><!-- --></A><H3>
createActionRecord</H3>
<PRE>
private javax.microedition.contactless.ndef.NDEFRecord <B>createActionRecord</B>(byte&nbsp;action)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="createImageRecord(java.lang.String)"><!-- --></A><H3>
createImageRecord</H3>
<PRE>
private javax.microedition.contactless.ndef.NDEFRecord <B>createImageRecord</B>(java.lang.String&nbsp;filename)
                                                                  throws java.io.IOException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getImage(java.lang.String)"><!-- --></A><H3>
getImage</H3>
<PRE>
private java.io.ByteArrayOutputStream <B>getImage</B>(java.lang.String&nbsp;filename)
                                        throws java.io.IOException</PRE>
<DL>
<DD>Read image from phone to a ByteArrayOutputStream
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="createGeoRecord(double, double, int)"><!-- --></A><H3>
createGeoRecord</H3>
<PRE>
private javax.microedition.contactless.ndef.NDEFRecord <B>createGeoRecord</B>(double&nbsp;latitude,
                                                                       double&nbsp;longitude,
                                                                       int&nbsp;geoType)
                                                                throws java.io.UnsupportedEncodingException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.UnsupportedEncodingException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="createCustomRecord(java.lang.String, byte[])"><!-- --></A><H3>
createCustomRecord</H3>
<PRE>
private javax.microedition.contactless.ndef.NDEFRecord <B>createCustomRecord</B>(java.lang.String&nbsp;tagUri,
                                                                          byte[]&nbsp;payload)
                                                                   throws java.io.UnsupportedEncodingException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.UnsupportedEncodingException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="createVcalendarRecord(java.lang.String, java.util.Date, java.util.Date, boolean)"><!-- --></A><H3>
createVcalendarRecord</H3>
<PRE>
private javax.microedition.contactless.ndef.NDEFRecord <B>createVcalendarRecord</B>(java.lang.String&nbsp;tagCalSummary,
                                                                             java.util.Date&nbsp;tagCalStart,
                                                                             java.util.Date&nbsp;tagCalEnd,
                                                                             boolean&nbsp;useUtcTime)
                                                                      throws java.io.UnsupportedEncodingException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.UnsupportedEncodingException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="convertToVcalTime(java.util.Date, boolean)"><!-- --></A><H3>
convertToVcalTime</H3>
<PRE>
private java.lang.String <B>convertToVcalTime</B>(java.util.Date&nbsp;datetime,
                                           boolean&nbsp;useUtcTime)</PRE>
<DL>
<DD>Convert a Date object to the representation required by the vCalendar standard.
 Resulting format: yyyymmddThhmmss
 (uppercase T character as separator between date and time).
 This method isn't time zone aware.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>datetime</CODE> - date and time to convert
<DT><B>Returns:</B><DD>date and time as string suitable for a vCalendar entry.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../com/nokia/examples/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/NfcManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/nokia/examples/NfcCreatorMidlet.html" title="class in com.nokia.examples"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/nokia/examples/NfcMenuForm.html" title="class in com.nokia.examples"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?com/nokia/examples/NfcManager.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="NfcManager.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>
